<template>
    <div>
        <h1>中国</h1>
        <h2>北京</h2>
        <h3>海淀区</h3>
        <h4>中关村</h4>
        <h5>中关村大街</h5>
        <button @click="showLog">查看</button>
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';

function showLog() {
    const domRef = document.querySelectorAll('h1,h2,h3,h4,h5');
    console.log(domRef);
}
</script>

<style scoped>
</style>